/**
 * Created: 03/24/2010
 */
package org.klarblick.linkbox.model.dao;

import java.util.ArrayList;
import java.util.List;

import org.klarblick.linkbox.model.entities.Link;
import org.springframework.stereotype.Repository;

/**
 * Dummy implementation of the {@link ILinkDao} interface.
 * 
 * @author Sebastian Engel <sebastian.engel@klarblick.org>
 *
 */
@Repository
public class LinkDummyDao implements ILinkDao {
	
	private List<Link> linkStore = new ArrayList<Link>();

	/**
	 * {@inheritDoc}
	 */
	@Override
	public void addLink(Link link) {
		linkStore.add(link);
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public List<Link> findAll() {
		return linkStore;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public void removeLink(Link link) {
		linkStore.remove(link);
	}

}
